#include <iostream>
#include <sys/types.h>
#include <sys/socket.h>
#include <unistd.h>
#include <cstring>


int main() {
    int sockfd = socket(AF_INET, SOCK_DGRAM, 0);
    if (sockfd < 0) {
        std::cout << "socket error" << std::endl;
        return 1;
    }
    // client不需要明确bind
    close(sockfd);
    return 0;
}
